import { debounce } from '@/utils'
export default {
  bind: function(el, binding) {
    el.addEventListener('click', debounce(binding.value, 1500, true))
  }
}
// function debounce(fn, wait = 1500) {
//   let timer
//   return function() {
//     clearTimeout(timer)
//     timer = setTimeout(() => {
//       fn()
//     }, wait)
//   }
// }

